package pt.iscte.poo.example.scanner;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;


public class ExemploLeitura {


	public static void main(String[] args) {
		Scanner canalDeLeitura;
		try {
			canalDeLeitura = new Scanner(new File("linhas"));
			while (canalDeLeitura.hasNextLine()) {
				String linha = canalDeLeitura.nextLine();
				for (int i = 0; i != linha.length(); i++) {
					System.out.println(linha.charAt(i));
				}
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		

	}

}
